package com.ld.businessCard.utils;

import com.alibaba.excel.util.ListUtils;
import com.ld.businessCard.entity.Card;

import java.util.List;

public class ExcelUtil {
	public static List<Card> data(List<Card> cards) {
		List<Card> list = ListUtils.newArrayList();
		for (Card card : cards) {
			Card data = new Card();
			data.setName(card.getName());
			data.setSex(card.getSex());
			data.setEmail(card.getEmail());
			list.add(card);
		}
		return list;
	}
}
